c-parse-state. Don't "append-lower-brace-pair" in certain
authorAlan Mackenzie <acm@muc.de>
Sun, 2 Feb 2014 16:28:52 +0000 (16:28 +0000)
committerAlan Mackenzie <acm@muc.de>
Sun, 2 Feb 2014 16:28:52 +0000 (16:28 +0000)
commit4ab9f6d710ead390f5062af0660e370b340b8b79
treee3727d44f96c447c2a95c6d4f2c03379ef1678c8
parentf1ab2ae339244ef58cba1beacc704835482f0101
c-parse-state.  Don't "append-lower-brace-pair" in certain
circumstances.  Also fix an obscure bug where "\\s!" shouldn't be
recognised as a comment.

* progmodes/cc-engine.el (c-state-pp-to-literal): Check for "\\s!"
as well as normal comment starter.
(c-parse-state-get-strategy): Extra return possibility
'back-and-forward.
(c-remove-stale-state-cache): Extra element CONS-SEPARATED in
return value list to indicate replacement of a brace-pair cons
with its car.
(c-parse-state-1): With 'back-and-forward, only call
c-append-lower-brace-pair-to state-cache when cons-separated.
lisp/ChangeLog
lisp/progmodes/cc-engine.el